//
//  KABMallHpTCell.m
//  kabu
//
//  Created by XiangDongMBP on 2017/4/22.
//  Copyright © 2017年 East. All rights reserved.
//

#import "KABMallHpTCell.h"
#import "KABModel.h"
#import <YYWebImage.h>

@implementation KABMallHpTCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

- (void)configViewWithHpListItem:(KABMallHpListItem *)item {
    [self.coverImgView yy_setImageWithURL:[NSURL URLWithString:item.cover_img_url] placeholder:[KABDefaultVarModel sharedInstance].skinDefaultImg options:YYWebImageOptionSetImageWithFadeAnimation completion:nil];
    
    self.titleLabel.text = item.title;
    self.subTitleLabel.text = item.subtitle;
}

@end
